<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.toncen.samepms.util.OnLineUserManager"/>
<jsp:directive.page import="com.toncen.samepms.util.SQLUtils"/>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="g" uri="/fishergrid-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>在线用户</title>
	<%@include file="/share/header.jsp"%>
	<s:head/>	
	<g:header theme="${sessionScope.skinCon.gridSkin}"/>
  </head>
  <%
  	OnLineUserManager onLineUserManager=OnLineUserManager.getIntance();
  	onLineUserManager.getMaxOnLineUser();
  	onLineUserManager.getOnLineNum();
    String users=onLineUserManager.getOnLineUserMap().keySet().toString();
    users=users.substring(1,users.length()-1);
    request.setAttribute("users",users);
  %>
  <body>
  	<s:actionerror/>
  	<center class="EditMainTitle">当前在线用户【<%=onLineUserManager.getOnLineNum()%>】人/最多在线用户【<%=onLineUserManager.getMaxOnLineUser()%>】人</center>
  	<g:grid name="/main/dsnc/page/onlineuser.fisher.xml" queryBreak="2" queryColumn="userId" queryValue="users">
  		<g:query/>
  		<g:separator/>
  		<g:export/>  
  		<g:separator/>		
  	</g:grid>
  </body>
</html>
